CC = g++
CFLAGS = -Wall -g

Server = stringServer.cpp
Client = stringClient.cpp
Server_object = $(Server:.cpp=.o)
Client_object = $(Client:.cpp=.o)

S_EXECUTABLE = stringServer
C_EXECUTABLE = stringClient

all: S_target C_target

S_target: $(S_EXECUTABLE)

C_target: $(C_EXECUTABLE)

$(S_EXECUTABLE): 
	$(CC)  $(CFLAGS) $(Server) -o $@

$(C_EXECUTABLE): 
	$(CC)  $(CFLAGS) $(Client) -o $@ -lpthread

clean:
	rm -f *.o *.d $(S_EXECUTABLE) $(C_EXECUTABLE)

